package com.onepiece.shipelves.common.exception;

/**
 * @author: ting
 * @date: 2019-08-05
 */
public class AuthException extends RuntimeException {

    private String code;

    private String msg;

    public AuthException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "AuthException{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
